Learn R Programming

Compositional (version 5.0)

All pairwise additive log-ratio transformations: All pairwise additive log-ratio transformations

Description

All pairwise additive log-ratio transformations.

Usage

alr.all(x)

Arguments

x

A numerical matrix with the compositional data.

Value

A matrix with all pairwise alr transformed data.

Details

The additive log-ratio transformation with the first component being the commn divisor is applied. Then all the other pairwise log-ratios are computed and added next to each column. For example, divide by the first component, then divide by the second component and so on. This means that no zeros are allowed.

References

Aitchison J. (1986). The statistical analysis of compositional data. Chapman & Hall.

See Also

alr, alfa

Examples

Run this code
# NOT RUN {
x <- as.matrix(iris[, 2:4])
x <- x / rowSums(x)
y <- alr.all(x)
# }

Run the code above in your browser using DataLab